package com.opencloud.iot.client.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 基础记录
 * @author yeyong
 */
@TableName("iot_nstreng")
public class IotNStreng implements Serializable {

    private static final long serialVersionUID= 7977542627000469535L;

    /**
     * 手表mac地址
     */
    @ApiModelProperty(value = "手表mac地址")
    @TableId(value = "watchmac", type = IdType.ID_WORKER)
    private String watchmac;

    /**
     * 记录时间
     */
    @ApiModelProperty(value = "记录时间")
    private Long timestamp;

    /**
     * 动量值
     */
    @ApiModelProperty(value = "动量值")
    private Integer streng;

    /**
     * 角速度
     */
    @ApiModelProperty(value = "角速度")
    private Integer angle;

    @TableField(fill = FieldFill.INSERT)
    private Date createtime;


    public String getWatchmac() {
        return watchmac;
    }

    public void setWatchmac(String watchmac) {
        this.watchmac = watchmac;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public Integer getStreng() {
        return streng;
    }

    public void setStreng(Integer streng) {
        this.streng = streng;
    }

    public Integer getAngle() {
        return angle;
    }

    public void setAngle(Integer angle) {
        this.angle = angle;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return "IotNstreng{" +
                "watchmac=" + watchmac +
                ", timestamp=" + timestamp +
                ", streng=" + streng +
                ", angle=" + angle +
                ", createtime=" + createtime +
                "}";
    }
}
